package com.mfin.bom.adapter;

import com.mfin.bom.interfaces.IAddress;
import com.mfin.bom.objects.Address;

public class AddressAdapter extends IIdentifiableAdapter implements IAddress {

	private Address wrapedAddress;

	public AddressAdapter(Address a) {
		wrapedAddress = a;
	}

	public Address getAddress() {
		return wrapedAddress;
	}

	@Override
	public String getAddressLine1() {
		return wrapedAddress.getAddressLine1();
	}

	@Override
	public void setAddressLine1(String addressLine1) {
		wrapedAddress.setAddressLine1(addressLine1);
	}

	@Override
	public String getAddressLine2() {
		return wrapedAddress.getAddressLine2();
	}

	@Override
	public void setAddressLine2(String addressLine2) {
		wrapedAddress.setAddressLine2(addressLine2);
	}

	@Override
	public String getVillage() {
		return wrapedAddress.getVillage();
	}

	@Override
	public void setVillage(String village) {
		wrapedAddress.setVillage(village);
	}

	@Override
	public String getCity() {
		return wrapedAddress.getCity();
	}

	@Override
	public void setCity(String city) {
		wrapedAddress.setCity(city);
	}

	@Override
	public String getDistrict() {
		return wrapedAddress.getDistrict();
	}

	@Override
	public void setDistrict(String district) {
		wrapedAddress.setDistrict(district);
	}

	@Override
	public String getState() {
		return wrapedAddress.getState();
	}

	@Override
	public void setState(String state) {
		wrapedAddress.setState(state);
	}

	@Override
	public String getPincode() {
		return wrapedAddress.getPincode();
	}

	@Override
	public void setPincode(String pincode) {
		wrapedAddress.setPincode(pincode);
	}
}
